<h1>Tags</h1>
<ul id="tags">
	<?php
		$values = array_values($tags);
		$max = max($values);
		$min = min($values);
		
		foreach($tags as $tag => $count)
		{
			$tagWeight = (log($count) - log($min)) / (log($max) - log($min));
			$score = 1 + round((QDB_TAG_GRADES - 1) * $tagWeight);
			
	?>
			<li class="tag-<?php echo $score ?> count-<?php echo $count ?>"><a title="<?php echo $tag . ' (' . $count . ')' ?>" href="<?php echo $html->url('/quotes/tag/' . $tag) ?>">		<?php echo $tag ?><span class="tag-count"> (<?php echo $count ?>)</span></a></li>
	<?php
		}
	?>
</ul>
